package com.demo.commons.results;

public enum CommonEnum {
	
	/**
	 * 请求成功
	 */
	SUCCESS(200, "请求成功"),
	
	HTTP_REQUEST_FAIL(1111, "第三方服务调用异常"),
	
	/**
	 * access_token失效
	 */
	ACCESS_TOKEN_ERROR(4011,"access_token无效"),
	
	/**
	 * refresh_token失效
	 */
	REFRESH_TOKEN_ERROR(4012,"refresh_token无效"),
	
	/**
	 * 访问此资源需要身份验证
	 */
	AUTH_VER(4013, "访问此资源需要身份验证"),
	
	/**
	 * 权限不足
	 */
	PERMISSIONS_ERROR(4015, "权限不足"),
	
	/**
	 * 签名错误
	 */
	SIGN_ERROR(2000,"签名错误"),
	
	/**
	 * 参数错误
	 */
	PARAMETER_EXCEPTION(2001,"参数错误"),
	
    
    /**
     * 系统异常
     */
    SERVER_ERROR(5000,"系统异常"),
    
    /**
     * 通用错误，msg自定义
     */
    TY_ERROR(8000,""),
    
    /**
     * 未知错误
     */
    UNKNOWN_ERROR(9999,"未知错误"),
    
    /**
     * FTP上传失败
     */
    FTP_UPLOAD_ERROR(7111,"FTP上传失败"),
    
    /**
     * FDFS上传失败上传失败
     */
    FDFS_UPLOAD_ERROR(7111,"FDFS上传失败")
    ;
	
	private Integer code;
	private String msg;
	
	CommonEnum(Integer code, String msg) {
		this.code = code;
		this.msg = msg;
	}
	
	public Integer getCode() {
		return code;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	

}
